<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Current Trip</title>
    <link rel="stylesheet" href="${resource(dir: 'current', file: 'style.css')}" type="text/css">
  </head>
  <body>
    <div id="content">
      <h1>Current Trip</h1>
      <g:form action="allTrips" method="post">
          <label>All Trips: </label>
          <g:submitButton class="buttons" name="allTrips" value="View it" />
      </g:form>
      <g:form action="tripByPurpose" method="post">
          <label>Purpose: </label>
          <g:select name="trips" action="tripByPurpose" from="${trips}" value="${trips[0]}"/>
          <g:submitButton class="buttons" name="tripByPurpose" value="Search" />
      </g:form>
      <a class="buttons" id="home" href="/grailsworkshop2012-1-f">Back</a>
    </div>    
  </body>
</html>
